﻿CREATE TABLE [dbo].[Carton] (
    [CartonId]        UNIQUEIDENTIFIER NOT NULL,
    [Height]          FLOAT (53)       NOT NULL,
    [Width]           FLOAT (53)       NOT NULL,
    [Length]          FLOAT (53)       NOT NULL,
    [CortonTypeId]    UNIQUEIDENTIFIER NOT NULL,
    [BoardmaterialId] UNIQUEIDENTIFIER NOT NULL,
    PRIMARY KEY CLUSTERED ([CartonId] ASC),
    CONSTRAINT [FK_Carton__BoardMaterial] FOREIGN KEY ([BoardmaterialId]) REFERENCES [dbo].[BoardMaterial] ([Id]),
    CONSTRAINT [FK_Carton__CartonType] FOREIGN KEY ([CortonTypeId]) REFERENCES [dbo].[CartonType] ([Id]),
    CONSTRAINT [FK279E8051692A6820] FOREIGN KEY ([CartonId]) REFERENCES [dbo].[Goods] ([Id])
);

